// FacebookResponseStatus.cs
// Facebook/Framework/Service/Core
// Copyright (c) 2007, Nikhil Kothari. All Rights Reserved.
//

using System;

namespace Facebook.Service.Core {

    /// <summary>
    /// Represents the status of a response resulting from invoking a
    /// Facebook API method.
    /// </summary>
    public enum FacebookResponseStatus : uint {

        /// <summary>
        /// The call succeeded.
        /// </summary>
        Succeeded = 0,

        /// <summary>
        /// There was an unknown error in making the call.
        /// </summary>
        UnknownError = 1,

        /// <summary>
        /// The Facebook service was not available.
        /// </summary>
        ServiceUnavailable = 2,

        /// <summary>
        /// The number of allowed requests have been reached.
        /// </summary>
        RequestLimitExceeded = 4,

        /// <summary>
        /// The host was disallowed.
        /// </summary>
        DisallowedHost = 5,

        /// <summary>
        /// There was an invalid parameter value.
        /// </summary>
        InvalidParameter = 100,

        /// <summary>
        /// The API key used to represent the application was invalid.
        /// </summary>
        InvalidApiKey = 101,

        /// <summary>
        /// The request was not signed correctly.
        /// </summary>
        IncorrectSignature = 104,

        /// <summary>
        /// The application does not have the required permission.
        /// </summary>
        PermissionNotGranted = 250,

        /// <summary>
        /// There was an HTTP error in issuing the request.
        /// </summary>
        HttpError = 0xFFFF0000
    }
}
